#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QMouseEvent>
#include <QPainter>
#include <QVector>
#include "arrowwidget.h"


namespace Ui {
class Widget;
}

class Widget : public QWidget
{
    Q_OBJECT

public:
    explicit Widget(QWidget *parent = nullptr);
    ~Widget();
    void timerEvent(QTimerEvent *);
    void paintEvent(QPaintEvent * event);
    void initLoadPixmap();
protected:
    void mousePressEvent(QMouseEvent *e);
    void mouseMoveEvent(QMouseEvent *e);

private:
    Ui::Widget *ui;
    QPoint pos;  //鼠标相对于窗口的位置，不是相对屏幕的位置
    QVector <QPixmap > pixmap_list; //
    int pixmap_index;
    ArrowWidget *w1;


private slots:
    void OnBscGroupRightAction();
};

#endif // WIDGET_H
